﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using MementoClient.ViewModels;
using MementoLibrary.DTOs;

namespace MementoClient.Classes
{
    public class ClientAutoMapperConfiguration
    {
        public static void RegisterAutoMapperMaps()
        {
            Mapper.CreateMap<WorkLogDTO, WorkLogDTO>();
            Mapper.CreateMap<WorkLogDTO, WorkLogVM>();
            Mapper.CreateMap<WorkLogVM, WorkLogDTO>();
            Mapper.CreateMap<WorkLogVM, WorkLogVM>().ForMember(x => x.AddThisCategory, ops => ops.Ignore());
        }
    }
}
